package util;

/**
 * 枚举
 * 状态码
 *
 * @author qjw
 * @version 1.0
 * @date 2023/9/9 10:15
 */

public enum CodeStatusEnum {
    /**
     * 成功状态
     */
    SUSSESS(200, "操作成功了"),

    /**
     * 失败状态
     */
    FAILURE(500, "操作失败了");


    private Integer code;
    private String desc;


    CodeStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
